<!DOCTYPE html>
<html>
<head>
    <title>{$category.name} {$category.seo_title} {$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$category.seo_keywords},{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$category.seo_description},{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/list.css">

    <hook name="before_head_end"/>
</head>
<body class="body-white">
<div class="container shadow">
    <include file="public@nav"/>

    <div class="section clearfix">
        <div class="section-left">
            <div class="news-container" style="margin-top: 0">
                <div class="news-container-header">
                    <if condition="!empty($parent_category)">
                        <a href="{:cmf_url('portal/List/index',array('id'=>$parent_category['id']))}"><h2>
                            {$parent_category.name}</h2></a>
                        <else/>
                        <a href="{:cmf_url('portal/List/index',array('id'=>$category['id']))}"><h2>{$category.name}</h2>
                        </a>

                    </if>
                    <hr/>
                </div>
                <ul class="category-list">
                    <if condition="!empty($parent_category)">
                        <portal:subCategories categoryId="$parent_category['id']" item="vo">

                            <a href="{:cmf_url('portal/List/index',array('id'=>$vo['id']))}">
                                <li
                                <if condition="$vo['id'] == $category['id']">class="active"</if>
                                ><img src="__TMPL__/public/assets/images/arrow.png">{$vo.name}</li></a>
                        </portal:subCategories>
                        <else/>
                        <portal:subCategories categoryId="$category['id']" item="vo">

                            <a href="{:cmf_url('portal/List/index',array('id'=>$vo['id']))}">
                                <li
                                <if condition="$vo['id'] == $category['id']">class="active"</if>
                                ><img src="__TMPL__/public/assets/images/arrow.png">{$vo.name}</li></a>
                        </portal:subCategories>
                    </if>
                </ul>
            </div>
            <div class="news-container">
                <div class="news-container-header">
                    <h2>通知公告</h2>

                    <a href="{:cmf_url('portal/List/index',array('id'=>20))}" class="more">更多</a>

                </div>
                <hr/>
                <ul class="newslist">

                    <portal:articles limit="8" order="post.post_hits DESC,post.published_time DESC"
                                     categoryIds="20">

                        <li style="line-height: 25px;">·<a
                                href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo.category_id))}"
                                target="_blank" title="{$vo['post_title']}">
                            {:sub_title($vo['post_title'],14)}</a></li>
                    </portal:articles>
                </ul>
            </div>
            <div class="news-container">
                <div class="news-container-header"><h2 style="">政策法规</h2><a href="{:cmf_url('portal/List/index',array('id'=>26))}"
                                                                            class="more">更多</a>
                </div>
                <hr/>
                <ul class="newslist">
                    <portal:articles limit="8" order="post.post_hits DESC,post.published_time DESC"
                                     categoryIds="26">
                        <li style="line-height: 25px;">·<a
                                href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo.category_id))}"
                                target="_blank" title="{$vo['post_title']}">
                            {:sub_title($vo['post_title'],14)}</a></li>
                    </portal:articles>
                </ul>
            </div>
        </div>
        <div class="section-right">
            <div class="section-right-header">
                <a href="__ROOT__/">首页</a>-
                <portal:breadcrumb cid="$category.id" self="true"><a
                        href="{:url('portal/List/index',['id'=>$vo['id']])}">{$vo.name}</a>-
                </portal:breadcrumb>
            </div>
            <div class=sort-list>
                <php>
                    $sub_Categorys = subCategory($category['id']);
                </php>
                <dl>
                   <if condition="count($sub_Categorys) != 0">

                       <foreach name="sub_Categorys" item="child">
                           <dd>
                               <div class="list-header">
                                   {$child['name']}
                                   <a href="{:cmf_url('portal/List/index',array('id'=>$child['id']))}" class="more">
                                       更多>>
                                   </a>
                               </div>
                               <ul>
                                   <portal:articles limit="10" order="post.published_time DESC"
                                                    categoryIds="$child['id']">
                                       <!--列表页-->
                                       <li>
                                           <span>[{:date('m/d',$vo['update_time'])}]</span>
                                           <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}">{:sub_title($vo['post_title'],70)}</a>
                                       </li>
                                       <!--单网页？？-->
                                   </portal:articles>
                               </ul>
                           </dd>
                       </foreach>

                       <else/>
                       <dd>
                           <ul>
                               <portal:articles page="10" order="post.published_time DESC"
                                                categoryIds="$category['id']">

                                   <!--列表页-->
                                   <li>

                                       <span>[{:date('m/d',$vo['update_time'])}]</span>
                                       <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}">{:sub_title($vo['post_title'],70)}</a>
                                   </li>
                                   <!--单网页？？-->
                               </portal:articles>

                           </ul>
                           <div style="text-align:center;">
                               <nav style="text-align: center;">
                                   <ul class="pagination">
                                       <page/>
                                   </ul>
                               </nav>
                           </div>
                       </dd>
                   </if>
                </dl>
            </div>
        </div>
    </div>
    <include file="public@footer"/>
</div>


<include file="public@scripts"/>
<hook name="before_body_end"/>
</body>
</html>